let typeActive = '../../images/zaqizaba/倒三角红.png'
let typeDefault = '../../images/zaqizaba/倒三角灰.png'

let likeDefault = '../../images/zaqizaba/关注灰.png'
let likeActive = '../../images/zaqizaba/follow.png'

let followDefault = '../../images/zaqizaba/收藏2.png'
let followActive = '../../images/zaqizaba/subscribe.png'

let appointmentDefault = '../../images/zaqizaba/预约2.png'
let appointmentActive = '../../images/zaqizaba/collection.png'
$(function () {
  //排序
  $('.search_content_type li').click(function(){
    if($(this).find("img").attr('src') == typeDefault){
      $(this).find("img").attr('src',typeActive)
      return;
    }
    $(this).find("img").attr('src',typeDefault)
  })
  //喜欢
  $(".shop_details_follow").click(function () {
    if($(this).attr('src') == likeDefault){
      $(this).attr('src',likeActive)
      return;
    }
    $(this).attr('src',likeDefault)
  })
  //关注
  $(".shop_details_footer_follow").click(function () {
    if($(this).find('img').attr('src') == followDefault){
      $(this).find('img').attr('src',followActive)
      $(this).css('color','#FE6161')
      return;
    }
    $(this).find('img').attr('src',followDefault)
    $(this).css('color','#666666')
  })
  //关注
  $(".shop_details_footer_appoin").click(function () {
    if($(this).find('img').attr('src') == appointmentDefault){
      $(this).find('img').attr('src',appointmentActive)
      $(this).css('color','#FE6161')
      return;
    }
    $(this).find('img').attr('src',appointmentDefault)
    $(this).css('color','#666666')
  })


})
